package com.gxa.entity;

import java.util.Date;

public class Community {
    private Integer cid;
    private String cname;
    private String address;
    private Double area;
    private String creator;
    private String managers;
    private Date createTime;
    private String remark;

    public Community() {
    }

    public Community(Integer cid, String cname, String address, Double area, String creator, String managers, Date createTime, String remark) {
        this.cid = cid;
        this.cname = cname;
        this.address = address;
        this.area = area;
        this.creator = creator;
        this.managers = managers;
        this.createTime = createTime;
        this.remark = remark;
    }

    /**
     * 用于add页面，edit页面封装对象的构造方法
     * @param cid
     * @param cname
     */
    public Community(Integer cid, String cname) {
        this.cid = cid;
        this.cname = cname;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getArea() {
        return area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getManagers() {
        return managers;
    }

    public void setManagers(String managers) {
        this.managers = managers;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Community{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", address='" + address + '\'' +
                ", area=" + area +
                ", creator='" + creator + '\'' +
                ", managers='" + managers + '\'' +
                ", createTime=" + createTime +
                ", remark='" + remark + '\'' +
                '}';
    }
}
